#ifndef __ARTIST_SIGNAL_H__
#define __ARTIST_SIGNAL_H__
#define  SIGNAL_NOTIFY_REALTIME    (0)
#define  SIGNAL_NOTIFY_DELAYED     (1)
typedef struct struct_signal
        {
          U4B  returnvalue; /*pass the value to the destination*/
          U4B  dt; /*when sendsignal this item is the pid of destination,when waitsignal it's the limit ticks want to last and the remain ticks*/
          U4B  signal;
          U4B  sourcepid;
        }SIGNAL;
typedef struct struct_signal* PSIGNAL;

#define SIGNAL_ANY        (0xFFFFFFFE)
#define SIGNAL_INVALID    (0xFFFFFFFF)
#define SIGNAL_ZOMBIE       (0)
#define SIGNAL_READY        (1)
#define SIGNAL_STOPPED      (2)
#define SIGNAL_WAIT         (3)
#define SIGNAL_SAFESEND   (100)  /*This signal is only a fake signal ,no process send it,so if a process wait it,it will only be released by the other process get the message*/
#define SIGNAL_ATA        (101)
#define SIGNAL_KEYBOARD   (102)
#endif
